package day04;

public class PassObject {
    double radius;//半径
    public double findArea() {//面积
        double s = 3.14 * radius * radius;
        return s;
    }
    public int printAreas(int time){//调用圆对象 定义变量time
        //  circle 圆对象（面积）
        //  time  次数

        System.out.println("半径\t\t" + "面积");

        for (int i = 1; i <= time; i++) {

            radius = i;
            double s = findArea();//调用面积

            System.out.println(radius + "\t\t" + s);
        }
        return time;

    }
}
